@import "reset";
@import "../font/iconfont.css";
//清除浮动公用类
.clearfix:after{
  content: '';
  display: block;
  clear: both;
}
// 内容公共样式
.container {
  width: 1226px;
  margin-right: auto;
  margin-left: auto;
  position: relative;
}
//要隐藏的元素公用类
.hide{
  display: none !important;
}
.sep{
  margin: 0 .3em;
  color: #424242;
}
.logo{
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  //要隐藏掉的文本内容：当CSS能加载出来，该文本不可见，当只有HTML加载出来，这个文字是可见的。
}
.ir{
  display: block;
  text-align: left;
  text-indent: -9999em;
  overflow: hidden;
}
.logo:before{
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 56px;
  height: 56px;
  content: "";
  background: url("../img/logo-mi2.png") no-repeat;
  background-size: 56px;
}
#app{
  /*---------------------------------------------------头部----------------------------------------------------------*/
  .header{
    //顶部导航
    .site-topbar{
      position: relative;
      height: 40px;
      font-size: 12px;
      color: #b0b0b0;
      background: #333;
      .topbar-nav{
        float: left;
        height: 40px;
        line-height: 40px;
        a{
          color: #b0b0b0;
          line-height: 40px;
          display: inline-block;
        }
        a:hover {
          color: #fff;
        }
      }
      //购物车
      .topbar-cart{
        position: relative;
        float: right;
        width: 120px;
        height: 40px;
        margin-left: 15px;
        -webkit-transition: all .2s;
        transition: all .2s;
        font-size: 12px;
        .cart-mini{
          z-index: 32;
          display: block;
          height: 40px;
          line-height: 40px;
          text-align: center;
          color: #b0b0b0;
          background: #424242;
          .iconfont-cart{
            margin-right: 4px;
            font-size: 20px;
            line-height: 20px;
            vertical-align: -4px;
          }
        }
        .cart-menu{
          position: absolute;
          right: 0;
          top: 40px;
          z-index: 31;
          width: 316px;
          height: 100px;
          color: #424242;
          background: #fff;
          -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.15);
          box-shadow: 0 2px 10px rgba(0,0,0,.15);
          overflow: hidden;
          -webkit-transition: height .3s;
          transition: height .3s;
          .menu-content{
            padding: 20px 0 0;
            .msg{
              padding: 20px 0 20px;
              margin: 0 20px 20px;
              text-align: center;
            }
          }

        }
      }
      .topbar-info{
        position: relative;
        float: right;
        height: 40px;
        line-height: 40px;
        a{
          color: #b0b0b0;
        }
        a:hover {
          color: #fff;
        }
      }
    }
    //次级导航栏
    .site-header{
      height: 100px;
      position: relative;
      .container{
        width: 1226px;
        //居中
        margin-right: auto;
        margin-left: auto;
        .header-logo,.header-nav,.header-nav{
          float: left;
        }
        //logo
        .header-logo{
          float: left;
          width: 62px;
          margin-top: 22px;
        }
        //导航
        .header-nav{
          float: left;
          width: 850px;
          //ul
          .nav-list{
            position: relative;
            z-index: 10;
            float: left;
            width: 1100px;
            height: 88px;
            margin: 0;
            padding: 12px 0 0 30px;
            list-style-type: none;
            font-size: 16px;
            // li
            .nav-item {
              float: left;
              .link {
                display: block;
                padding: 26px 10px 38px;
                color: #333;
                -webkit-transition: color .2s;
                transition: color .2s;
              }
            }
            .nav-item:hover{
              a{
                color: #ff6600;
              }
            }
            // 隐藏li
            .nav-category{
              position: relative;
              float: left;
              width: 127px;
              height: 88px;
              padding-right: 15px;
              a{
                font-size: 10px;
                color: #ff6600;
              }

            }
            //竖导航栏
            .site-category{
              display: block;
              width: 234px;
              height: 460px;
              position: absolute;
              top: 88px;
              left: -92px;
              z-index:21;
              font-size: 14px;
              //ul
              .site-category-list{
                height: 420px;
                border: 0;
                color: #fff;
                background: rgba(105,101,101,.6);
                margin: 0;
                padding: 20px 0;
                list-style-type: none;
              }
              //li
              .category-item{
                a{
                  display: block;
                  padding-left: 30px;
                  height: 42px;
                  line-height: 42px;
                  color: #fff;
                  position: relative;
                  font-size: 14px;
                }
                .icon-youjiantou{
                  position: absolute;
                  top: 12px;
                  right: 20px;
                  font-size: 16px;
                  line-height: 16px;
                }
                //右侧hover商品页
                .children{
                  width: 992px;
                  position: absolute;
                  top: 0;
                  left: 234px;
                  z-index: 24;
                  height: 458px;
                  border: 1px solid #e0e0e0;
                  border-left-color: rgb(224, 224, 224);
                  background: #fff;
                  display: none;
                  .children-list{
                    width: 248px;
                    height: 458px;
                    padding: 2px 0;
                    float: left;
                    li{
                      position: relative;
                      float: left;
                      width: 265px;
                      height: 76px;
                      .link{
                        display: block;
                        padding: 18px 20px;
                        line-height: 40px;
                        color: #333;
                        img{
                          width: 40px;
                          height: 40px;
                          float: left;
                          margin-right: 12px;
                        }
                        .text{
                          float: left;
                          width: 172px;
                          line-height: 40px;
                          white-space: nowrap;
                          text-overflow: ellipsis;
                          overflow: hidden;
                        }
                      }
                    }
                  }
                }
              }
              .category-item-active .title {
                background: #ff6700;
                color: #fff;
              }
              .category-item:hover{
                .title {
                  background: #ff6700;
                  color: #fff;
                }
              }
            }
          }
        }
        .header-search{
          float: right;
          width: 296px;
          margin-top: 25px;
          form{
            width: 296px;
            height: 50px;
            position: relative;
            input{
              position: absolute;
              top: 0;
              border: 1px solid #e0e0e0;
              outline: 0;
              -webkit-transition: all .2s;
              transition: all .2s;
            }
            .search-text{
              right: 51px;
              z-index: 1;
              width: 223px;
              height: 48px;
              padding: 0 10px;
              font-size: 14px;
              line-height: 48px;
            }
            .search-btn{
              position: absolute;
              right: 0;
              z-index: 2;
              width: 52px;
              height: 50px;
              font-size: 24px;
              line-height: 24px;
              background: #fff;
              color: #616161;

            }
          }
        }
      }
      // 下拉菜单
      .header-nav-menu{
        position: absolute;
        top: 100px;
        left: 0;
        z-index: 24;
        width: 100%;
        height: 229px;
        border-top: 1px solid #e0e0e0;
        background: #fff;
        overflow: hidden;
        display: none;
        .container{
          position: relative;
          .children-list{
            li{
              position: relative;
              float: left;
              width: 180px;
              padding: 35px 12px 0;
              text-align: center;
              .title{
                margin: 0;
                line-height: 20px;
              }
              .price{
                margin: 0;
                line-height: 20px;
                color: #ff6700;
              }
            }
          }
        }
      }
    }
  }
  /*..........................................轮播图及小图展示区域................................................*/
  .home-hero-container {
    width: 1226px;
    height: 644px;
    margin: 0 auto;
    margin-bottom: 26px;
    .home-hero{
      //轮播图
      #home-hero-swiper{
        position: relative;
        /*定义图片切换动画样式*/
        /*淡出*/
        @keyframes fadeOut {
          from {
            opacity: 1;
          }
          to {
            opacity: 0;
          }
        }
        @-webkit-keyframes fadeOut {
          from {
            opacity: 1;
          }
          to {
            opacity: 0;
          }
        }
        /*淡入*/
        @keyframes fadeIn{
          from{
            opacity: 0;
          }
          to {
            opacity: 1;
          }
        }
        @-webkit-keyframes fadeIn{
          from{
            opacity: 0;
          }
          to {
            opacity: 1;
          }
        }
        // 轮播图div
        .swiper-wrapper{
          position: relative;
          height: 460px;
          overflow: hidden;
          display: none;
          img {
            width: 1226px;
            height: 460px;
          }
        }
        //第1张初始显示
        .swiper-wrapper:first-child{
          display: block;
          opacity: 1;
        }
        //小点
        .swiper-pagination{
          position: absolute;
          width: 400px;
          left: auto;
          right: 30px;
          bottom: 20px;
          text-align: right;
          z-index: 20;
          .swiper-pagination-bullet{
            display: inline-block;
            width: 6px;
            height: 6px;
            border: 2px solid #fff;
            margin: 0 4px;
            border-color: hsla(0,0%,100%,.3);
            border-radius: 10px;
            overflow: hidden;
            background: rgba(0,0,0,.4);
          }
          .swiper-pagination-bullet-active{
            background: hsla(0,0%,100%,.4);
            border-color: rgba(0,0,0,.4);
          }
        }
        //轮播图上一张和下一张按钮
        .swiper-button-prev,.swiper-button-next{
          position: absolute;
          top: 50%;
          width: 41px;
          height: 69px;
          margin-top: -35px;
          z-index: 2;
          cursor: pointer;
          outline: none;
        }
        .swiper-button-prev{
          left: 234px;
          background: url("../img/icon-slides.png") no-repeat -84px 50%;
        }
        .swiper-button-next{
          right:0;
          background: url("../img/icon-slides.png") no-repeat -125px 50%;
        }
        .swiper-button-prev:hover{
          background-position: 0 50%;
        }
        .swiper-button-next:hover{
          background-position: -42px 50%;
        }
      }
      //保障服务等入口
      .home-hero-sub {
        margin-top: 14px;
        .sub_list{
          width: 234px;
          float: left;
          //ul
          .home-channel-list{
            margin: 0;
            padding: 3px;
            list-style-type: none;
            font-size: 12px;
            text-align: center;
            background: #5f5750;
            li{
              position: relative;
              float: left;
              width: 70px;
              height: 82px;
              padding: 0 3px;
              a{
                display: block;
                padding-top: 18px;
                text-overflow: ellipsis;
                color: #fff;
                opacity: .7;
                -webkit-transition: opacity .2s;
                transition: opacity .2s;
                img{
                  display: block;
                  width: 24px;
                  height: 24px;
                  margin: 0 auto 4px;
                }
              }
              a:hover{
                opacity: 1;
              }
            }
          }
        }
        .goods_img {
          margin-left: 14px;
          float: left;
          .home-promo-list {
            li {
              margin-left: 15px;
              float: left;
              img {
                width: 316px;
                height: 170px;
              }
              &:first-of-type {
                margin-left: 0;
              }
            }
          }
        }
      }
    }
  }
  /*........................................分类明细产品展示区域.........................................................*/
  .page-main {
    background: #f5f5f5;
    .container {
      width: 1226px;
      //height: 2000px;
      margin: 0 auto;
      margin-bottom: 26px;
      .home-banner-box{
        margin: 22px 0;
        img{
          width: 1226px;
          height: 120px;
        }
      }
      .home-brick-box{
        .itemBox{
          position: relative;
          .title{
            margin-bottom: 8px;
          }
          .more{
            position: absolute;
            top: 0;
            right: 0;
            .tab-list{
              margin: 0;
              font-size: 16px;
              li{
                margin: 0 0 0 30px;
                display: inline-block;
              }
              .tab-active{
                color: #ff6700;
                border-bottom: 2px solid #ff6700;
              }
            }
          }
          .goodsItem{
            .row{
              .goods_l{
                width: 234px;
                float: left;
                li{
                  position: relative;
                  z-index: 1;
                  float: left;
                  width: 234px;
                  margin-bottom: 14px;
                  background: #fff;
                }
                img{
                  width: 234px;
                }
              }
              .goods_r{
                width: 978px;
                float: left;
                margin-left: 14px;
                .brick-list{
                  margin: 0 0 -14px -14px;
                }
                li {
                  width: 234px;
                  height: 300px;
                  position: relative;
                  float: left;
                  margin-left: 14px;
                  margin-bottom: 14px;
                  background: #fff;
                  a{
                    display: block;
                    text-align: center;
                  }
                  img {
                    width: 164px;
                  }
                  .title{
                    text-align: center;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                    font-size: 14px;
                    font-weight: 400;
                    color: #333;
                  }
                  .desc{
                    margin: 0 10px 10px;
                    height: 18px;
                    font-size: 12px;
                    color: #b0b0b0;
                  }
                  .price{
                    margin: 0 10px 14px;
                    text-align: center;
                    color: #ff6700;
                  }
                }
              }
            }
          }
        }
      }
      //视频区
      .home-video-box{
        .itemBox {
          position: relative;
          .title {
            margin-bottom: 8px;
          }
          .more {
            position: absolute;
            top: 0;
            right: 0;
          }
        }
        .videoContent{
          .videoUl{
            li{
              float: left;
              margin-left: 14px;
              margin-bottom: 14px;
              text-align: center;
              background: #fff;
              img{
                width: 296px;
              }
            }
            li:first-child{
              margin-left: 0;
            }
          }

        }
      }
    }
  }
  /*.........................................底部.....................................................................*/
  .site-footer{
    .footer-service{
      padding: 27px 0;
      border-bottom: 1px solid #e0e0e0;
      li{
        float: left;
        width: 19.8%;
        height: 25px;
        border-left: 1px solid #e0e0e0;
        font-size: 16px;
        line-height: 25px;
        text-align: center;
      }
      li:first-child{
        margin-left: 0;
        border-left: none;
      }
    }
    .footer-links{
      padding: 40px 0;
      .col-links{
        float: left;
        width: 160px;
        margin: 0;
        dt{
          margin: -1px 0 26px;
          font-size: 14px;
          line-height: 1.25;
          color: #424242;
        }
        dd{
          margin: 10px 0 0;
          font-size: 12px;
        }
      }
      .col-contact{
        float: right;
        width: 251px;
        border-left: 1px solid #e0e0e0;
        text-align: center;
        color: #616161;
        p{
          margin: 0 0 5px 0;
          font-size: 12px;
        }
        .phone{
          font-size: 22px;
          line-height: 1;
          color: #ff6700;
        }
        .btn-line-primary{
          border: 1px solid #ff6700;
          background: #fff;
          color: #ff6700;
          width: 118px;
          height: 28px;
          display: inline-block;
          font-size: 12px;
          line-height: 28px;
        }
        .follow{
          font-size: 12px;
          margin-top: 10px;
          a{
            width: 24px;
            height: 24px;
            display: inline-block;
            vertical-align: middle;
            margin-left: 6px;
            margin-top: -3px;
          }
          .wb{
            background: url("../img/wb.png") 50% 0 no-repeat;
            background-size: cover;
          }
          .wx{
            background: url("../img/wx.png") 50% 0 no-repeat;
            background-size: cover;
          }
        }
      }
    }
  }
  /*--------------------------------------- 网站信息------------------------------------------------------------------*/
  .site-info{
    padding: 30px 0;
    font-size: 12px;
    background: #fafafa;
    .logo{
      position: absolute;
    }
    .info-text{
      color: #b0b0b0;
      padding-left: 67px;
      a{
        color: #b0b0b0;
      }
      .sites a{
        color: #757575;
      }
    }
    .info-links{
      height: 28px;
      margin: 4px 0 15px;
      padding-left: 67px;
      img{
        width: auto;
        height: 28px;
        margin-left: 0;
      }
    }
    .slogan{
      clear: both;
      margin: 30px auto 0;
      width: 100%;
      height: 19px;
      background: url("../img/slogan2020.png") no-repeat center 0;
    }
  }
}
/*...............................................右侧工具栏..........................................................*/
.home-tool-bar{
  width: 84px;
  position: fixed;
  right: 0;
  bottom: 70px;
  z-index: 99;
  .item{
    position: relative;
    display: block;
    width: 82px;
    height: 90px;
    margin-top: -1px;
    background-color: #fff;
    border: 1px solid #f5f5f5;
    text-align: center;
    .icon{
      position: relative;
      width: 30px;
      height: 30px;
      margin: 0 auto 8px;
      padding-top: 18px;
      img{
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 30px;
      }
      img:last-of-type{
        z-index: -2;
      }
    }
  }
  .item:hover{
    .icon img:last-of-type{
      z-index: 2;
    }
    .text{
      color: #ff6600;
    }
  }
  .backtop{
    margin-top: 14px;
    border-top: 1px solid #f5f5f5;
    display: none;
  }
}
